import App from './App.vue'
import store from 'tools/store/index.js'
import http from 'tools/request'
// #ifndef VUE3
import Vue from 'vue'
Vue.config.productionTip = false
App.mpType = 'app'
import uView from "uview-ui";
Vue.use(uView);

// 挂载
Vue.prototype.$http = http;

import {
	router,
	RouterMount
} from './tools/router/router.js'
//引入路由
Vue.use(router);


const app = new Vue({
	store,
	...App
})
// #ifdef H5
RouterMount(app, router, "#app");
// #endif
// #ifndef H5
app.$mount();
// #endif
// #endif

// #ifdef VUE3
import {
	createSSRApp
} from 'vue'
export function createApp() {
	const app = createSSRApp(App)
	return {
		app
	}
}
// #endif
